package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.ShopInfoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetShopInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetShopInfoModel extends RetrofitBaseModel implements GetShopInfoIface<ShopInfoBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetShopInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getShopInfo(String shopid, TListener<ShopInfoBean> tListener) {
        Call<ShopInfoBean> call = allService.getShopInfo(shopid);
        callenqueue(call,tListener);
    }
}
